package com.bgs.fegin;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("service-detail")
public interface PictureFegin {
    @ApiOperation("处理阿里OSS图片")
    @PostMapping(value = "/handelPic" ,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public String handelPic(@RequestPart("file") MultipartFile file);
}
